import Vue from 'vue'
import Router from 'vue-router'
//登录
import login from "../page/login.vue"



// 下面页面内容是不用调用接口部分
import newpeople from '../components/commapp/newpeople.vue' //新手引导

// 下面页面是需要修改的部分
import loginpassword from "../components/commapp/loginpassword.vue" //登录窗口的修改密码
import misspassword from "../components/commapp/misspassword.vue" //忘记密码

import forgetpassword from "../components/commapp/forgetpassword.vue" //找回密码
import guize from "../components/commapp/guize.vue" //交易规则
import moni from "../components/commapp/moni.vue" //模拟交易页面
import profit from '../components/commapp/profit.vue' //止盈止损设置
import risk from "../page/risk.vue" //风险告知


/*// oldvue文件夹是当前app不用部分
import capitalpage from "../oldvue/capitalpage.vue" //资金明细列表tab页面
import indexpage from '../oldvue/indexpage.vue' //行情页面旧版
import appCondition from "../oldvue/appCondition.vue" //条件单
import setting from "../oldvue/setting.vue" //个人信息设置页面
import bindphone from "../oldvue/bind.vue" //绑定手机号/修改手机号
import about from "../oldvue/about.vue" //关于我们
import announcement from "../oldvue/announcement.vue" //公告
import security from "../oldvue/security.vue" //安全保障
import risk from "../oldvue/risk.vue" //风险告知

import condition from '../oldvue/condition.vue' //条件单列表
import position from '../oldvue/position.vue' //持仓单列表

import hongbao from "../oldvue/hongbao.vue" //现金红包
import investment from "../oldvue/investment.vue" //申请投资人

import rec from "../oldvue/rec.vue" //充值
import tran from "../oldvue/tran.vue" //支付宝转账
import transfer from '../oldvue/transfer.vue' //银行卡充值
import transnext from "../oldvue/transnext.vue" //银行卡充值信息
import usermoney from "../oldvue/transaction.vue" //资金盈亏显示
import rec_record from "../oldvue/rec_record.vue" //充值记录

import withs from "../oldvue/withs.vue" //提现1
import withdraw from "../oldvue/withdraw.vue" //提现2
import withdrawnext from "../oldvue/withdrawnext.vue" //提现到银行卡
import withdrawalpassword from "../oldvue/withdrawalpassword.vue" //修改提款密码
import bankcard from "../oldvue/bankcard.vue" //提款银行卡*/

Vue.use(Router)

export default new Router({
  routes: [
    // 默认显示第一页设定现在是登录页面
    //登录

    //首页行情
    {
      path: '/index',
      name: 'plist',
      component: resolve => require( /* webpackChunkName: "plist" */ ["../page/plist.vue"], resolve)
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/',
      name: 'news',
      component: resolve => require( /* webpackChunkName: "transaction" */ ["../components/commapp/news.vue"],
        resolve)
    },
    {
      path: '/my',
      name: 'my',
      component: resolve => require( /* webpackChunkName: "transaction" */ ["../components/commapp/my.vue"],
        resolve)
    },

    // 注册
    {
      path: '/reg',
      name: 'reg',
      component: resolve => require( /* webpackChunkName: "reg" */ ["../page/reg.vue"], resolve)
    },
    //  风险告知
    {
      path: '/risk',
      name: 'risk',
      component: resolve => require(["../page/risk.vue"], resolve)
    },
    // 实名认证
    {
      path: '/realname',
      name: 'realname',
      component: resolve => require( /* webpackChunkName: "realname" */ ["../components/commapp/realname.vue"],
        resolve)
    },
    // 关于我们
    {
      path: '/on',
      name: 'on',
      component: resolve => require( /* webpackChunkName: "on" */ ["../components/commapp/on.vue"], resolve)
    },
    //充值
    {
      path: '/chongzhi',
      name: 'chongzhi',
      component: resolve => require( /* webpackChunkName: "chongzhi" */ ["../components/commapp/chongzhi.vue"],
        resolve)
    },
    // 选中产品详情
    {
      path: '/detail',
      name: 'detail',
      component: resolve => require( /* webpackChunkName: "detail" */ ["../page/detail.vue"], resolve)
    },
    // 资金明细
    {
      path: '/mingxi',
      name: 'mingxi',
      // import mingxi from '' //账户资金明细
      component: resolve => require( /* webpackChunkName: "mingxi" */ ["../components/commapp/mingxi.vue"],
        resolve)
    },
    {
      path: '/mine',
      name: 'mine',
      component: resolve => require( /* webpackChunkName: "mingxi" */ ["../components/commapp/mine.vue"], resolve)
    },
    // 修改密码
    {
      path: '/changepwd',
      name: 'changepwd',
      component: resolve => require( /* webpackChunkName: "changepwd" */ ["../components/commapp/changepwd.vue"],
        resolve)
    },
    // 通知公告
    {
      path: '/gonggao',
      name: 'gonggao',
      component: resolve => require( /* webpackChunkName: "gonggao" */ ["../components/commapp/gonggao.vue"],
        resolve)
    },
    // 通知公告
    {
      path: '/market',
      name: 'market',
      component: resolve => require( /* webpackChunkName: "gonggao" */ ["../components/commapp/market.vue"],
        resolve)
    },
    // k线
    {
      path: '/klinepage',
      name: 'klinepage',
      component: resolve => require( /* webpackChunkName: "klinepage" */ ["../page/klinepage.vue"], resolve)
    },
    // purchase购买页面
    {
      path: '/transaction',
      name: 'transaction',
      component: resolve => require( /* webpackChunkName: "transaction" */ ["../page/transaction.vue"], resolve)
    },
    // 协议
    {
      path: '/deal',
      name: 'deal',
      component: resolve => require( /* webpackChunkName: "transaction" */ ["../components/commapp/deal.vue"],
        resolve)
    },
    {
      path: '/dealText',
      name: 'dealText',
      component: resolve => require( /* webpackChunkName: "transaction" */ ["../components/commapp/dealText.vue"],
        resolve)
    },
    {
      path: '/promotion',
      name: 'promotion',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/promotion.vue"
        ],
        resolve)
    },
    {
      path: '/promotionRecord',
      name: 'promotionRecord',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/promotionRecord.vue"
        ],
        resolve)
    },
    {
      path: '/service',
      name: 'service',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/service.vue"
        ],
        resolve)
    },
    {
      path: '/setting',
      name: 'setting',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/setting.vue"
        ],
        resolve)
    },

    {
      path: '/version',
      name: 'version',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/version.vue"
        ],
        resolve)
    },
    {
      path: '/dou',
      name: 'dou',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/dou.vue"
        ],
        resolve)
    },
    {
      path: '/douRecord',
      name: 'douRecord',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/douRecord.vue"
        ],
        resolve)
    },
    {
      path: '/performance',
      name: 'performance',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/performance.vue"
        ],
        resolve)
    },
    {
      path: '/newsCenter',
      name: 'newsCenter',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/newsCenter.vue"
        ],
        resolve)
    },

    {
      path: '/limit',
      name: 'limit',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/limit.vue"
        ],
        resolve)
    },
{
      path: '/dealRecord',
      name: 'dealRecord',
      component: resolve => require( /* webpackChunkName: "transaction" */ [
          "../components/commapp/dealRecord.vue"
        ],
        resolve)
    },


  ]
})
